This snippet was orginally taken from C# Program to View the Date and time of Access of a File
using System;
using System.IO;
class Program
{
static void Main()
{
string path = "C:\\sri\\srip.txt";
FileInfo info = new FileInfo(path);
Console.WriteLine("File Creation Time : {0}", info.CreationTime);
Console.WriteLine("File Last Access Time : {0}", info.LastAccessTime);
Console.WriteLine("File Last Write Time : {0} ", info.LastWriteTime);
Console.Read();
}
}
Hiya. I'm Ronald, an Industrial Engineer from Colombia. Hope you enjoyed my ad-free, bullshit-free site. If you liked it, tell someone about it.